<template>
  <div>
    <div>{{ app }}</div>
    <button @click="app += 1">App加1</button>
    <Father></Father>
    <router-link to="/">Home</router-link>
    <router-link to="/about">About</router-link>
    <router-view />
  </div>
</template>
<script>
import Father from './components/Father.vue'
export default {
  name: "App",
  components: {
    Father,
  },
  data() {
    return {
      app: "App",
    };
  },
  beforeCreate() {
    console.log("beforeCreate", "app");
  },
  created() {
    console.log("created", "app");
  },
  beforeMount() {
    console.log("beforeMount", "app");
  },
  mounted() {
    console.log("mounted", "app");
  },
  beforeUpdate() {
    console.log("beforeUpdate", "app");
  },
  updated() {
    console.log("updated", "app");
  },
  beforeDestroy() {
    console.log("beforeDestroy", "app");
  },
  destroyed() {
    console.log('destroyed','app')
  }
};
</script>

<style lang="scss" scoped></style>
